

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>The baseWidget module &mdash; pyamp v1.2 documentation</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="top" title="pyamp v1.2 documentation" href="../index.html" />
    <link rel="up" title="The qt module" href="mod_pyamp_ui_qt.html" />
    <link rel="next" title="The interrupt module" href="pyamp_ui_qt_interrupt.html" />
    <link rel="prev" title="The widgetList module" href="pyamp_ui_qt_widgetList.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="pyamp_ui_qt_interrupt.html" title="The interrupt module"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="pyamp_ui_qt_widgetList.html" title="The widgetList module"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">pyamp v1.2 documentation</a> &raquo;</li>
          <li><a href="mod_pyamp.html" >The pyamp module</a> &raquo;</li>
          <li><a href="mod_pyamp_ui.html" >The ui module</a> &raquo;</li>
          <li><a href="mod_pyamp_ui_qt.html" accesskey="U">The qt module</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-pyamp.ui.qt.baseWidget">
<span id="the-basewidget-module"></span><h1>The baseWidget module<a class="headerlink" href="#module-pyamp.ui.qt.baseWidget" title="Permalink to this headline">¶</a></h1>
<p>The baseWidget module contains the BaseWidget class which provides an
implementation of the BaseView specific to creating an extending a
QWidget object.</p>
<div class="section" id="the-baseview-class">
<h2>The BaseView class<a class="headerlink" href="#the-baseview-class" title="Permalink to this headline">¶</a></h2>
<p class="graphviz">
<img src="../_images/inheritance-63592976e8f141f4716109ee09f6999a229ce11e.png" alt="Inheritance diagram of pyamp.ui.qt.baseWidget.BaseView" usemap="#inheritance74e64a5355" class="inheritance"/>
<map id="inheritance74e64a5355" name="inheritance74e64a5355">
<area shape="rect" href="pyamp_patterns_interfaces_requiredProperties.html#pyamp.patterns.interfaces.requiredProperties.RequiredProperties" title="pyamp.patterns.interfaces.requiredProperties.RequiredProperties" alt="" coords="5,7,440,33"/>
<area shape="rect" href="pyamp_ui_qt_baseView.html#pyamp.ui.qt.baseView.BaseView" title="pyamp.ui.qt.baseView.BaseView" alt="" coords="289,84,513,111"/>
<area shape="rect" href="pyamp_logging_loggable.html#pyamp.logging.loggable.Loggable" title="pyamp.logging.loggable.Loggable" alt="" coords="464,7,699,33"/>
</map>
</p>
<dl class="class">
<dt id="pyamp.ui.qt.baseWidget.BaseView">
<em class="property">class </em><tt class="descclassname">pyamp.ui.qt.baseWidget.</tt><tt class="descname">BaseView</tt><big>(</big><em>name=None</em>, <em>controller=None</em>, <em>mainWindow=None</em>, <em>logData=None</em>, <em>logColor=0</em><big>)</big><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseView" title="Permalink to this definition">¶</a></dt>
<dd><p>The BaseView class provides a base framework for creating Qt
objects.</p>
<p>It provides several functions that are called in a specific order,
and are to be overridden by subclasses in order to provide a
specific implementation for the BaseView. These functions pertain
to certain aspects of setting up a view and are called in the
following order:</p>
<ol class="arabic simple">
<li>configure()</li>
<li>createLayout()</li>
<li>configureLayout()</li>
<li>setupView()</li>
<li>setupConnections()</li>
</ol>
<p>This class implements the <a class="reference internal" href="../logging.html#pyamp.logging.Loggable" title="pyamp.logging.Loggable"><tt class="xref py py-class docutils literal"><span class="pre">pyamp.logging.Loggable</span></tt></a> interface
and provides the ability to specify the <tt class="xref py py-attr docutils literal"><span class="pre">logData</span></tt> object
as well as the <tt class="xref py py-attr docutils literal"><span class="pre">color</span></tt> to use for logging (the default
color is to use a white foreground color).</p>
<ul class="simple">
<li>name &#8211; The name of the BaseView</li>
<li>controller &#8211; The controller for the BaseView</li>
<li>mainWindow &#8211; The main window</li>
<li>logData &#8211; The LogData object</li>
<li>logColor &#8211; The color to use for the logger</li>
</ul>
<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseView.completeSetup">
<tt class="descname">completeSetup</tt><big>(</big><big>)</big><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseView.completeSetup" title="Permalink to this definition">¶</a></dt>
<dd><p>Finish setting up the view.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">This function should be overridden by subclasses.</p>
</div>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseView.configure">
<tt class="descname">configure</tt><big>(</big><big>)</big><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseView.configure" title="Permalink to this definition">¶</a></dt>
<dd><p>Configure the view.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">This function should be overridden by subclasses.</p>
</div>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseView.configureLayout">
<tt class="descname">configureLayout</tt><big>(</big><big>)</big><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseView.configureLayout" title="Permalink to this definition">¶</a></dt>
<dd><p>Configure the layout for this view.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">This function should be overridden by subclasses.</p>
</div>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseView.createLayout">
<tt class="descname">createLayout</tt><big>(</big><big>)</big><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseView.createLayout" title="Permalink to this definition">¶</a></dt>
<dd><p>Create the main layout.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">This function should be overridden by subclasses.</p>
</div>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseView.setController">
<tt class="descname">setController</tt><big>(</big><em>controller</em><big>)</big><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseView.setController" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the controller object for this view.</p>
<ul class="simple">
<li>controller &#8211; The controller</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseView.setupConnections">
<tt class="descname">setupConnections</tt><big>(</big><big>)</big><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseView.setupConnections" title="Permalink to this definition">¶</a></dt>
<dd><p>Set up any connections this view requires.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">This function should be overridden by subclasses.</p>
</div>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseView.setupView">
<tt class="descname">setupView</tt><big>(</big><big>)</big><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseView.setupView" title="Permalink to this definition">¶</a></dt>
<dd><p>Create and set up this view.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">This function should be overridden by subclasses.</p>
</div>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="the-layouttype-class">
<h2>The LayoutType class<a class="headerlink" href="#the-layouttype-class" title="Permalink to this headline">¶</a></h2>
<p class="graphviz">
<img src="../_images/inheritance-8edf29f05034d38be5275c55f83d422249bd855f.png" alt="Inheritance diagram of pyamp.ui.qt.baseWidget.LayoutType" usemap="#inheritanceac9224fb2c" class="inheritance"/>
<map id="inheritanceac9224fb2c" name="inheritanceac9224fb2c">
<area shape="rect" href="#pyamp.ui.qt.baseWidget.LayoutType" title="pyamp.ui.qt.baseWidget.LayoutType" alt="" coords="5,7,256,33"/>
</map>
</p>
<dl class="class">
<dt id="pyamp.ui.qt.baseWidget.LayoutType">
<em class="property">class </em><tt class="descclassname">pyamp.ui.qt.baseWidget.</tt><tt class="descname">LayoutType</tt><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#LayoutType"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.LayoutType" title="Permalink to this definition">¶</a></dt>
<dd><p>The LayoutType class contains definitions of the different
types of layouts.</p>
<dl class="classmethod">
<dt id="pyamp.ui.qt.baseWidget.LayoutType.get">
<em class="property">classmethod </em><tt class="descname">get</tt><big>(</big><em>layoutType</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#LayoutType.get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.LayoutType.get" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the Qt layout object for the given layout type.</p>
<ul class="simple">
<li>layoutType &#8211; The type of layout</li>
</ul>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="the-basewidget-class">
<h2>The BaseWidget class<a class="headerlink" href="#the-basewidget-class" title="Permalink to this headline">¶</a></h2>
<p class="graphviz">
<img src="../_images/inheritance-9788dc5493661d6816c1afb04124264f19acb5f1.png" alt="Inheritance diagram of pyamp.ui.qt.baseWidget.BaseWidget" usemap="#inheritance3689d9efed" class="inheritance"/>
<map id="inheritance3689d9efed" name="inheritance3689d9efed">
<area shape="rect" href="pyamp_logging_loggable.html#pyamp.logging.loggable.Loggable" title="pyamp.logging.loggable.Loggable" alt="" coords="5,140,208,163"/>
<area shape="rect" href="pyamp_ui_qt_baseView.html#pyamp.ui.qt.baseView.BaseView" title="pyamp.ui.qt.baseView.BaseView" alt="" coords="319,206,513,229"/>
<area shape="rect" href="#pyamp.ui.qt.baseWidget.BaseWidget" title="pyamp.ui.qt.baseWidget.BaseWidget" alt="" coords="446,273,665,296"/>
<area shape="rect" href="pyamp_patterns_interfaces_requiredProperties.html#pyamp.patterns.interfaces.requiredProperties.RequiredProperties" title="pyamp.patterns.interfaces.requiredProperties.RequiredProperties" alt="" coords="228,140,604,163"/>
</map>
</p>
<dl class="class">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget">
<em class="property">class </em><tt class="descclassname">pyamp.ui.qt.baseWidget.</tt><tt class="descname">BaseWidget</tt><big>(</big><em>name=None</em>, <em>controller=None</em>, <em>mainWindow=None</em>, <em>logData=None</em>, <em>logColor=0</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget" title="Permalink to this definition">¶</a></dt>
<dd><p>The BaseWidget class provides an implementation of the
<tt class="xref py py-class docutils literal"><span class="pre">amp.ui.qt.BaseView</span></tt> class designed to set up and create a
<tt class="xref py py-class docutils literal"><span class="pre">PyQt4.QtGui.QWidget</span></tt> object.</p>
<p>This class provides serveral functions which can be overridden by
subclasses to easily add features to the BaseWidget. These functions
are called in the following order during the set up process:</p>
<blockquote>
<ol class="arabic simple">
<li>configure()</li>
<li>configureLayout()</li>
<li>createElements()</li>
<li>setupConnections()</li>
</ol>
</blockquote>
<ul class="simple">
<li>name &#8211; The name of the BaseWidget</li>
<li>controller &#8211; The controller for the BaseWidget</li>
<li>mainWindow &#8211; The main window</li>
<li>logData &#8211; The <a class="reference internal" href="../logging.html#pyamp.logging.LogData" title="pyamp.logging.LogData"><tt class="xref py py-class docutils literal"><span class="pre">pyamp.logging.LogData</span></tt></a> object</li>
<li>logColor &#8211; The color to use for logging</li>
</ul>
<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.addElement">
<tt class="descname">addElement</tt><big>(</big><em>element</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.addElement"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.addElement" title="Permalink to this definition">¶</a></dt>
<dd><p>Add an element to the main layout.</p>
<ul class="simple">
<li>element &#8211; The element to add</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.addElements">
<tt class="descname">addElements</tt><big>(</big><em>elements</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.addElements"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.addElements" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a list of elements to the main layout.</p>
<ul class="simple">
<li>elements &#8211; The list of elements</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.addItem">
<tt class="descname">addItem</tt><big>(</big><em>item</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.addItem"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.addItem" title="Permalink to this definition">¶</a></dt>
<dd><p>Add an item to the main layout.</p>
<ul class="simple">
<li>item &#8211; The item to add</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.addWidget">
<tt class="descname">addWidget</tt><big>(</big><em>widget</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.addWidget"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.addWidget" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a widget to the main layout.</p>
<ul class="simple">
<li>widget &#8211; The widget to add</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.clear">
<tt class="descname">clear</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.clear"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.clear" title="Permalink to this definition">¶</a></dt>
<dd><p>Remove all of the child widgets and items currently for this
BaseWidget.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.clearItems">
<tt class="descname">clearItems</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.clearItems"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.clearItems" title="Permalink to this definition">¶</a></dt>
<dd><p>Clear all the items from this BaseWidget.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.clearWidgets">
<tt class="descname">clearWidgets</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.clearWidgets"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.clearWidgets" title="Permalink to this definition">¶</a></dt>
<dd><p>Clear all the widgets from this BaseWidget.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.configure">
<tt class="descname">configure</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.configure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.configure" title="Permalink to this definition">¶</a></dt>
<dd><p>Configure the view.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.configureLayout">
<tt class="descname">configureLayout</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.configureLayout"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.configureLayout" title="Permalink to this definition">¶</a></dt>
<dd><p>Configure the layout for this view.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.createElements">
<tt class="descname">createElements</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.createElements"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.createElements" title="Permalink to this definition">¶</a></dt>
<dd><p>Create the elements for this view. Return the list of widgets,
or items in the order that they should be added to the layout.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.createLayout">
<tt class="descname">createLayout</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.createLayout"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.createLayout" title="Permalink to this definition">¶</a></dt>
<dd><p>Create the main layout.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.getItems">
<tt class="descname">getItems</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.getItems"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.getItems" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the list of child items for this BaseWidget.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.getWidgets">
<tt class="descname">getWidgets</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.getWidgets"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.getWidgets" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the list of child widgets for this BaseWidget.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.layoutType">
<tt class="descname">layoutType</tt><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.layoutType" title="Permalink to this definition">¶</a></dt>
<dd><p>The layoutType property contains the type of layout to use for this
Widget. It should be a value from the <a class="reference internal" href="#pyamp.ui.qt.baseWidget.LayoutType" title="pyamp.ui.qt.baseWidget.LayoutType"><tt class="xref py py-class docutils literal"><span class="pre">LayoutType</span></tt></a> class.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.paintEvent">
<tt class="descname">paintEvent</tt><big>(</big><em>_event</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.paintEvent"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.paintEvent" title="Permalink to this definition">¶</a></dt>
<dd><p>Override the paintEvent function to allow StylSheets to work for
this QWidget.</p>
<dl class="docutils">
<dt>Note this function was taken from the documentation of style sheets</dt>
<dd>for custom QWidget classes.</dd>
</dl>
<ul class="simple">
<li>_event &#8211; The QPaintEvent</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.setMargins">
<tt class="descname">setMargins</tt><big>(</big><em>left=None</em>, <em>top=None</em>, <em>right=None</em>, <em>bottom=None</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.setMargins"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.setMargins" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the content margins for this widget&#8217;s layout.</p>
<ul class="simple">
<li>left &#8211; The left margin</li>
<li>top &#8211; The top margin</li>
<li>right &#8211; The right margin</li>
<li>bottom &#8211; The bottom margin</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.setSpacing">
<tt class="descname">setSpacing</tt><big>(</big><em>spacing</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.setSpacing"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.setSpacing" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the spacing between components in the layout.</p>
<ul class="simple">
<li>spacing &#8211; The spacing</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.setStyleSheet">
<tt class="descname">setStyleSheet</tt><big>(</big><em>styleSheet</em><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.setStyleSheet"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.setStyleSheet" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the style sheet for this widget.</p>
<ul class="simple">
<li>styleSheet &#8211; The StyleSheet</li>
</ul>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.setupConnections">
<tt class="descname">setupConnections</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.setupConnections"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.setupConnections" title="Permalink to this definition">¶</a></dt>
<dd><p>Set up any connections this view requires.</p>
</dd></dl>

<dl class="method">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.setupView">
<tt class="descname">setupView</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/pyamp/ui/qt/baseWidget.html#BaseWidget.setupView"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.setupView" title="Permalink to this definition">¶</a></dt>
<dd><p>Create and set up this view.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.ui.qt.baseWidget.BaseWidget.tabOrder">
<tt class="descname">tabOrder</tt><a class="headerlink" href="#pyamp.ui.qt.baseWidget.BaseWidget.tabOrder" title="Permalink to this definition">¶</a></dt>
<dd><p>The tabOrder property allows concrete widgets to set their tab order.
Each element in the list will be tab connected to the next element in
the list. The list will cycle around to the front so the final element
is tab connected to the first element.</p>
</dd></dl>

</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">The baseWidget module</a><ul>
<li><a class="reference internal" href="#the-baseview-class">The BaseView class</a></li>
<li><a class="reference internal" href="#the-layouttype-class">The LayoutType class</a></li>
<li><a class="reference internal" href="#the-basewidget-class">The BaseWidget class</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="pyamp_ui_qt_widgetList.html"
                        title="previous chapter">The widgetList module</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="pyamp_ui_qt_interrupt.html"
                        title="next chapter">The interrupt module</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/_generated/pyamp_ui_qt_baseWidget.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="pyamp_ui_qt_interrupt.html" title="The interrupt module"
             >next</a> |</li>
        <li class="right" >
          <a href="pyamp_ui_qt_widgetList.html" title="The widgetList module"
             >previous</a> |</li>
        <li><a href="../index.html">pyamp v1.2 documentation</a> &raquo;</li>
          <li><a href="mod_pyamp.html" >The pyamp module</a> &raquo;</li>
          <li><a href="mod_pyamp_ui.html" >The ui module</a> &raquo;</li>
          <li><a href="mod_pyamp_ui_qt.html" >The qt module</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2012, Brett Ponsler.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.1.
    </div>
  </body>
</html>